﻿#ifndef __AVOID_BW_CONTROL_CHECK_BOX_HEAD_FILE_INCLUDED__
#define __AVOID_BW_CONTROL_CHECK_BOX_HEAD_FILE_INCLUDED__
#include "ctlSelectableBox.h"

namespace swui
{
#pragma warning(push)
#pragma warning(disable:4250)
	class ctlCheckBox : public ctlSelectableBox
	{
	public:
		static const ctlControlType uniqueType = ctlControlType::ctlCheckBox;
	public:
		virtual ~ctlCheckBox() { destroy(); }
		bool create(ctlRoot* parent, ctlPoint point, 
			const ctlText& lpszText = ctlText(L""), 
			const ctlStyleBase& = ctlStyleGradient(ctlStyleGradient::common));
		void setSelect(bool isSelect = true);
	protected:
		virtual void _mouse_event_(ctlMouseEvent*);
		virtual bool _judge_point_(ctlPoint);
		virtual void _redraw_(_ctlInterior::drawInfo*);
	};
#pragma warning(pop)
}

#endif